<template>
	<view class="content">
        <uv-navbar title="问题详情" leftIconColor="#fff" :autoBack="true" :titleStyle="'color:#fff;font-size: 38rpx;font-weight:bold'" bgColor="#FE3262"></uv-navbar>
        <view class="" :style="'height:'+(menuTop+menuHeight)+'px;'"> </view>
        <view class="bgWhite plr15 ptb10 mlr15 mt30 radius6">
            <view class="  ft18 mb10" style="color: #000; text-align: center; font-weight: bold;">
                {{detail.title}}
            </view>
            <uv-parse :content="detail.content"></uv-parse>
        </view>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				
                id:"",
                detail:{},
                menuTop:uni.getStorageSync('menuInfo').menuTop,
                menuHeight:uni.getStorageSync('menuInfo').menuHeight,
			}
		},
		
		onLoad(opt) {
                if(opt.id) this.id = opt.id
                this.getMain()
                
		},
		methods: {
           
			async getMain() {
                const data  =   await this.$api.questionView({id:this.id })
                this.detail = data
               console.log(data)
			},
          
		}
	}
</script>
<style scoped lang="scss">
	
</style>